all:CpuTool.jar
CpuTool.class:CpuTool.java
	javac CpuTool.java
CpuTool.jar:MANIFEST.MF CpuTool.class libCpuTool.so
	jar -cvfm CpuTool.jar MANIFEST.MF lib/ kSar.jar CpuTool.class libCpuTool.so
head:CpuTool.h
CpuTool.h:CpuTool.java
	javah CpuTool
.PHONY:clean
clean:
	rm CpuTool.h CpuTool.jar CpuTool.class *.tmp 2>/dev/zero
